<!DOCTYPE html>
<html>
<head>
    <title>用户</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            #if($shiro.hasPermission("user:save"))
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            #end
            #if($shiro.hasPermission("user:update"))
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            #end
            #if($shiro.hasPermission("user:delete"))
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
            #end
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group" hidden="true" >
                <div class="col-sm-2 control-label">备用用户标示</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.userId" placeholder="备用用户标示"/>
                </div>
            </div>
            <div class="form-group"  hidden="true" >
                <div class="col-sm-2 control-label">登录类型{1app正常登录}</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.loginType" placeholder="登录类型{1app正常登录}"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">用户姓名</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.username" placeholder="用户姓名"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">用户邮箱</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.useremail" placeholder="用户邮箱"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">用户电话</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.userphone" placeholder="用户电话"/>
                </div>
            </div>
            <div class="form-group"   hidden="true" >
                <div class="col-sm-2 control-label">删除标识</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.isdelete" placeholder="删除标识"/>
                </div>
            </div>
            <div class="form-group"  >
                <div class="col-sm-2 control-label">添加时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.addtime" placeholder="添加时间"/>
                </div>
            </div>
            <div class="form-group"   hidden="true" >
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.sex" placeholder=""/>
                </div>
            </div>
            <div class="form-group"  hidden="true" >
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.addressid" placeholder=""/>
                </div>
            </div>
            <div class="form-group"  hidden="true" >
                <div class="col-sm-2 control-label">身份证号</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.identitynum" placeholder="身份证号"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">用户昵称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.nickname" placeholder="用户昵称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">头像地址</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.headImage" placeholder="头像地址"/>
                </div>
            </div>
            <div class="form-group"  hidden="true" >
                <div class="col-sm-2 control-label">用户密码</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.password" placeholder="用户密码"/>
                </div>
            </div>
            <div class="form-group"  hidden="true" >
                <div class="col-sm-2 control-label">生日</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.birthday" placeholder="生日"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">国家</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.country" placeholder="国家"/>
                </div>
            </div>
            <div class="form-group"  hidden="true" >
                <div class="col-sm-2 control-label">城市</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.city" placeholder="城市"/>
                </div>
            </div>
            <div class="form-group"  hidden="true" >
                <div class="col-sm-2 control-label">个性签名</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.signature" placeholder="个性签名"/>
                </div>
            </div>
            <div class="form-group"  hidden="true" >
                <div class="col-sm-2 control-label">注册时的ip</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.userReqIp" placeholder="注册时的ip"/>
                </div>
            </div>
            <div class="form-group"  hidden="true" >
                <div class="col-sm-2 control-label">注册设备类型</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.deviceType" placeholder="注册设备类型"/>
                </div>
            </div>
            <div class="form-group"  hidden="true" >
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.ipCity" placeholder=""/>
                </div>
            </div>
            <div class="form-group"  hidden="true" >
                <div class="col-sm-2 control-label">微信open_id</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.wxOpenId" placeholder="微信open_id"/>
                </div>
            </div>
            <div class="form-group"  hidden="true" >
                <div class="col-sm-2 control-label">UnionId</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="user.wxUnionId" placeholder="UnionId  "/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${rc.contextPath}/js/generator/user.js?_${date.systemTime}"></script>
</body>
</html>